package cn.sytton.taffecloud.common.db.mapper;

import org.springframework.dao.DataAccessException;

import java.util.List;
import java.util.Map;

/**
 * 业务Mapper接口
 * @param <T>
 *
 * @author skyrock
 */
public interface BizSqlMapper<T> extends MasterSqlMapper {

    List<T> findList(Map<String, Object> params) throws DataAccessException;

    T findById(String id) throws DataAccessException;

    int create(T entity) throws DataAccessException;

    int update(T entity) throws DataAccessException;

    int delete(String... ids) throws DataAccessException;
}
